import { createBrowserRouter } from "react-router-dom";

import Home from '../pages/home/Index'
import Todo from '../pages/todo/Index'
import Meassage from '../pages/meassage/Index'
import App from "../App";

let routes=createBrowserRouter([

    {
        path:'/',
        element:<App></App>,
        // children:[
        //     {
        //         path:'/home',
        //         element:<Home></Home>
        //     },
        //     {
        //         path:'/todo',
        //         element:<Todo></Todo>
        //     },
        //     {
        //         path:'/meassage',
        //         element:<Meassage></Meassage>
        //     },
        // ]
    },
    {
                path:'/home',
                element:<Home></Home>
            },
            {
                path:'/todo',
                 element:<Todo></Todo>
           },
             {
                path:'/meassage',
                element:<Meassage></Meassage>
           },
])

export default routes